<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="Content-Language" content="zh-CN" />
		<meta name="copyright" content="闻康集团刘代明监制" />
		<meta name="robots" content="all" />
		<style type="text/css">
				.show_week{display:none}
		</style>
		<?php echo $css_file; ?>
	</head>
	<body>
		<div class="main" >
			<div class="crumbs">
					当前位置：<span id="current_pos"><a class="on" href="__GROUP__/Disassistant/findModule">发现模块</a>->发现模块操作</span>
			</div>
			<div  class="m_content" id="right_main">
			<form  method="post" action="__GROUP__/Disassistant/findModuleaddedit_save" enctype="multipart/form-data" onsubmit="return validate(this)" >
			<div class="division">
			<table cellspacing="0" cellpadding="0" border="0" class="shop_config">
				<tbody>
					<tr class="regItem">
						<th>应用名称：</th>
						<td><input type="text" name="name" id="name" class="text" value="<?php if($detail){ echo $detail['name'];}?>"> </td>
					</tr>
					<tr class="regItem">
						<th>应用ICON：</th>
						<td><input type="file" name="icon" /><image style="width:50px;height:50px;" src="<?php echo $detail['icon'];?>" /></td>
					</tr>
					<tr class="regItem">
						<th>应用地址：</th>
						<td><input class="text" type="text" name="address" value="<?php if($detail){ echo $detail['address'];}?>" /></td>
					</tr>
				</tbody>
			</table>
		</div>  
		<div style="text-align:center;">
		<input type="hidden" name="id" size="25" value="{$id}" />
			<input type="submit" value="确定" />
			<input type="reset" value="重置 ">
		</div>
	</form>		
		</div>
		</div>
			<script type="text/javascript">
				/**
				 * 验证
				 */
				function validate(form) {
					if (form.name.value == "") {
						alert("请填写应用名称");
						form.name.focus();
						return (false);
					}
					if (form.address.value == "") {
						alert("请填写应用地址");
						form.address.focus();
						return (false);
					}
					return true;
				}
			</script>
	</body>
</html>